<!--
/**
* Based on Folding Menu Tree
* Dynamic Drive (www.dynamicdrive.com)
* For full source code, installation instructions,
* 100's more DHTML scripts, and Terms Of
* Use, visit dynamicdrive.com
*
* Updated to support arbitrarily nested lists
* by Mark Quinn (mark@robocast.com) November 2nd 1998
*/
var head="display:''"
img1=new Image()
img1.src="../../images/tree_plus.gif"
img2=new Image()
img2.src="../../images/tree_minus.gif"

function change(){
    if(!document.all)
        return
    if (event.srcElement.id=="foldheader" || event.srcElement.id=="deptheader") {
        var srcIndex = event.srcElement.sourceIndex
        var nested = document.all[srcIndex+2]
        if (nested.style.display=="none") {
            nested.style.display=''
            //event.srcElement.style.listStyleImage="url(open.gif)"
            event.srcElement.src=img2.src
        }
        else {
            nested.style.display="none"
            //event.srcElement.style.listStyleImage="url(fold.gif)"
            event.srcElement.src=img1.src
        }
    }
}

function changeTwins(){
	var foldnode = event.srcElement.previousSibling.previousSibling
	if (foldnode.id == "foldheader") {
        var srcIndex = foldnode.sourceIndex
        var nested = document.all[srcIndex+2]
        if (nested.style.display=="none") {
            nested.style.display=''
            //event.srcElement.style.listStyleImage="url(open.gif)"
            foldnode.src="../images/left_folderopen.gif"
        }
        else {
            nested.style.display="none"
            //event.srcElement.style.listStyleImage="url(fold.gif)"
            foldnode.src="../images/left_folder.gif"
        }
    }
}

document.onclick=change
//-->